/***********************************************************************
 *            Project: CoreCms
 *        ProjectName: 核心内容管理系统
 *                Web: https://www.corecms.net
 *             Author: 大灰灰
 *              Email: jianweie@163.com
 *         CreateTime: 2024/4/11 星期四 1:24:31
 *        Description: 暂无
 ***********************************************************************/

using SqlSugar;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace CoreCms.Net.Model.Entities
{
    /// <summary>
    /// 支付宝用户信息
    /// </summary>
    public partial class CoreCmsAliPayUserInfo
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public CoreCmsAliPayUserInfo()
        {
        }

        /// <summary>
        /// 序列
        /// </summary>
        [Display(Name = "序列")]
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Required(ErrorMessage = "请输入{0}")]
        public System.Int32 id { get; set; }

        /// <summary>
        /// accessToken
        /// </summary>
        [Display(Name = "accessToken")]

        [StringLength(maximumLength: 50, ErrorMessage = "{0}不能超过{1}字")]
        public System.String accessToken { get; set; }

        /// <summary>
        /// 支付宝用户编号
        /// </summary>
        [Display(Name = "支付宝用户编号")]
        [Required(ErrorMessage = "请输入{0}")]
        [StringLength(maximumLength: 50, ErrorMessage = "{0}不能超过{1}字")]
        public System.String aliPayUserInfoId { get; set; }

        /// <summary>
        /// 授权开始
        /// </summary>
        [Display(Name = "授权开始")]

        [StringLength(maximumLength: 50, ErrorMessage = "{0}不能超过{1}字")]
        public System.String authStart { get; set; }

        /// <summary>
        /// 截止时间
        /// </summary>
        [Display(Name = "截止时间")]
        [Required(ErrorMessage = "请输入{0}")]
        public System.Int32 expiresIn { get; set; }

        /// <summary>
        /// 刷新令牌时间
        /// </summary>
        [Display(Name = "刷新令牌时间")]
        [Required(ErrorMessage = "请输入{0}")]
        public System.Int32 reExpiresIn { get; set; }

        /// <summary>
        /// 刷新后token
        /// </summary>
        [Display(Name = "刷新后token")]

        [StringLength(maximumLength: 50, ErrorMessage = "{0}不能超过{1}字")]
        public System.String refreshToken { get; set; }

        /// <summary>
        /// 授权商户的user_id
        /// </summary>
        [Display(Name = "授权商户的user_id")]
        [Required(ErrorMessage = "请输入{0}")]
        [StringLength(maximumLength: 50, ErrorMessage = "{0}不能超过{1}字")]
        public System.String userId { get; set; }

        /// <summary>
        /// 注册用户序列
        /// </summary>
        [Display(Name = "注册用户序列")]
        [Required(ErrorMessage = "请输入{0}")]
        public System.Int32 userInfoId { get; set; }

        /// <summary>
        /// openId
        /// </summary>
        [Display(Name = "openId")]

        [StringLength(maximumLength: 50, ErrorMessage = "{0}不能超过{1}字")]
        public System.String openId { get; set; }

        /// <summary>
        /// unionId
        /// </summary>
        [Display(Name = "unionId")]

        [StringLength(maximumLength: 50, ErrorMessage = "{0}不能超过{1}字")]
        public System.String unionId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [Required(ErrorMessage = "请输入{0}")]
        public System.DateTime createTime { get; set; }
    }
}